package com.github.zhp;

import java.io.File;

public class CommonConfig {
    private String author = "zhp";
    private String packageName = "z.b.c";
    private String moduleName = "gen_test";
    private String outPutDir = null;

    public String getOutPutDir() {
        String defaultValue = "src/main/java";
        if (outPutDir == null) {
            outPutDir = System.getProperty("user.dir") + File.separator + moduleName
                    + File.separator + "src"
                    + File.separator + "main"
                    + File.separator + "java";
        }

        return outPutDir;
    }

    public void setOutPutDir(String outPutDir) {
        this.outPutDir = outPutDir;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
